<?php
/**

 * @package     Joomla.Administrator

 * @subpackage  com_bricrop

 *

 * @copyright   Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.

 * @license     GNU General Public License version 2 or later; see LICENSE.txt

 */



// No direct access

defined('_JEXEC') or die;



jimport('joomla.application.component.controllerform');



/**

 * Banner controller class.

 *

 * @package     Joomla.Administrator

 * @subpackage  com_bricrop

 * @since       1.6

 */

class RegionsControllerRegion extends JControllerForm

{

	/**

	 * @var    string  The prefix to use with controller messages.

	 * @since  1.6

	 */

	protected $text_prefix = 'COM_REGIONS_REGION';



	/**

	 * Method override to check if you can add a new record.

	 *

	 * @param   array  $data  An array of input data.

	 *

	 * @return  boolean

	 *

	 * @since   1.6

	 */

	

	 

	protected function allowAdd($data = array())

	{

		// Initialise variables.

		$user		= JFactory::getUser();
			// If the category has been passed in the URL check it.
		if ($allow === null)

		{

			// In the absence of better information, revert to the component permissions.

			return parent::allowAdd($data);

		}

		else

		{

			return $allow;

		}

	}



	

	



}

